package com.pmcc.yn.entity;

import com.pmcc.core.entity.UUIDEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author yaonan 1月10号
 * 门店的基础信息
 */
@Entity
@Table(name = "js_store")
@ApiModel(value = "门店的基础信息" ,description = "门店的基础信息")
public class StoreInfo extends UUIDEntity{

    @Column(name = "name")
    @ApiModelProperty(value = "name", required = true)
    private String name;//门店名称

    @Column(name = "phone" ,length =20)
    @ApiModelProperty(value = "phone", required = true)
    private String phone;// 门店的电话

    @Column(name = "photo1")
    @ApiModelProperty(value = "photo1", required = true)
    private String photo1;// 门店门头照片地址1

    @Column(name = "photo2")
    @ApiModelProperty(value = "photo2", required = true)
    private String photo2;// 门店门头照片地址2

    @Column(name = "photo3")
    @ApiModelProperty(value = "photo3", required = true)
    private String photo3;// 门店门头照片地址3

    @Column(name = "xx")
    @ApiModelProperty(value = "xx", required = true)
    private String xx;// 经度坐标

    @Column(name = "yy")
    @ApiModelProperty(value = "yy", required = true)
    private String yy;//纬度坐标

    @Column(name = "wxId")
    @ApiModelProperty(value = "wxId", required = true)
    private String wxId;//微信id

    @Column(name = "provence")
    @ApiModelProperty(value = "provence", required = true)
    private String provence;//所在省

    @Column(name = "city")
    @ApiModelProperty(value = "city", required = true)
    private String city;//所在市

    @Column(name = "area")
    @ApiModelProperty(value = "area", required = true)
    private String area;//所在区

    @Column(name = "address")
    @ApiModelProperty(value = "address", required = true)
    private String address;//具体地址

    @Column(name = "leader")
    @ApiModelProperty(value = "leader", required = true)
    private String leader;//负责人

    @Column(name = "create_time")
    @ApiModelProperty(value = "createTime", required = false)
    private Date createTime;//创建时间

    @Column(name = "flag")
    @ApiModelProperty(value = "flag", required = false)
    private Integer flag;//状态

    @Column(name = "username")
    @ApiModelProperty(value = "username", required = false)
    private String username;//用户名

    @Column(name = "password")
    @ApiModelProperty(value = "password", required = false)
    private String password;//密码

    @Column(name = "type")
    @ApiModelProperty(value = "type", required = false)
    private String type;//门店类型

    @Column(name = "del_flag")
    @ApiModelProperty(value = "delFlag", required = true)
    private Integer delFlag;//删除标志

    @Column(name = "open_time")
    @ApiModelProperty(value = "openTime", required = false)
    private Date openTime;//营业时间

    @Column(name = "account_flag")
    @ApiModelProperty(value = "accountFlag", required = false)
    private Integer accountFlag;//账号状态

    @Column(name = "last_login_time")
    @ApiModelProperty(value = "lastLoginTime", required = false)
    private Date lastLoginTime;//最后一次登陆时间

    @Column(name = "last_login_address")
    @ApiModelProperty(value = "lastLoginAddress", required = false)
    private String lastLoginAddress;//最后一次登陆地点

    @Column(name = "score")
    @ApiModelProperty(value = "score", required = false)
    private double score;//门店综合积分

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }



    public Integer getAccountFlag() {
        return accountFlag;
    }

    public void setAccountFlag(Integer accountFlag) {
        this.accountFlag = accountFlag;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginAddress() {
        return lastLoginAddress;
    }

    public void setLastLoginAddress(String lastLoginAddress) {
        this.lastLoginAddress = lastLoginAddress;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWxId() {
        return wxId;
    }

    public void setWxId(String wxId) {
        this.wxId = wxId;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getXx() {
        return xx;
    }

    public void setXx(String xx) {
        this.xx = xx;
    }

    public String getYy() {
        return yy;
    }

    public void setYy(String yy) {
        this.yy = yy;
    }

    public String getProvence() {
        return provence;
    }

    public void setProvence(String provence) {
        this.provence = provence;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhoto2() {
        return photo2;
    }

    public void setPhoto2(String photo2) {
        this.photo2 = photo2;
    }

    public String getPhoto3() {
        return photo3;
    }

    public void setPhoto3(String photo3) {
        this.photo3 = photo3;
    }

    public Date getOpenTime() {
        return openTime;
    }

    public void setOpenTime(Date openTime) {
        this.openTime = openTime;
    }

    public String getPhoto1() {
        return photo1;
    }

    public void setPhoto1(String photo1) {
        this.photo1 = photo1;
    }
}
